﻿
function minTimerHandler(e:TimerEvent) {

	// end all functions
	showPhotos();
	disconnectCamera();

	(startBtn as Button).enabled = true;;

	secTimer.stop();
	photoTimer.stop();
	minTimer.stop();
}

function secTimerHandler(e:TimerEvent) {
	second++;
	setText(myTextField,String(60 - second));
}

function photoTimerHandler(e:TimerEvent) {
	saveSnapshot();
}